<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<script type="text/javascript" >
    var str="sdsd/sdsd/12dffdfsdf356.zip";
    str=str.substring(str.lastIndexOf("/")+1);
    str=str.substring(0,str.length-4);



    console.log(str);







</script>
</body>
</html>